package cn.itsource.ymcc.domain;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.net.URLDecoder;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;
import org.springframework.util.StringUtils;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 * 
 * </p>
 *
 * @author whale
 * @since 2021-10-10
 */
@TableName("t_pay_flow")
@Data

public class PayFlow extends Model<PayFlow> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 交易时间
     */
    @TableField("notify_time")
    private Date notifyTime;
    /**
     * 标题
     */
    private String subject;
    /**
     * 交易号，对应订单号
     */
    @TableField("out_trade_no")
    private String outTradeNo;
    /**
     * 金额
     */
    @TableField("total_amount")
    private BigDecimal totalAmount;
    @TableField("trade_status")
    private String tradeStatus;
    /**
     * 错误码
     */
    private String code;
    /**
     * 错误信息
     */
    private String msg;

    @TableField("pay_success")
    private boolean paySuccess;

    @TableField("passback_params")
    private String passbackParams;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }



}
